<?php if($id != ""):?>
	<div class="inner-right">
		<?php
			$arr = App::InformationSet()->findById($id);
			$t= "<table style=\"margin-left:20px\" border=\"0\">
					<tr><td width=\"100\">ID</td><td>: {$arr['id']}</td></tr>
					<tr><td>Name</td><td>: {$arr['fullname']}</td></tr>
					<tr><td>Email</td><td>: {$arr['email']}</td></tr>
					<tr><td>Profession</td><td>: {$arr['profession']}</td></tr>
					<tr><td>Features</td><td>: " . $this->CategorySet('features')->idToName($arr['features']) . "</td></tr>
					<tr><td>Website Title</td><td>: {$arr['websitetitle']}</td></tr>
			 </table>";
		?>
	<?php echo str_replace("[info]",$t,$wcsuccessmessage['content']); ?>
	</div>
<?php else:?>

	<?php
		echo App::Load("Helper/Javascript")->validation_map(
														Array(
																'_errBg'=>ERROR_BACKGROUND,
																'_dflBg'=>'#CFCFCF',
																'_autoSubmit'=>'true',
																'_errToolTips'=>'false',
																'_errorMark' => 'inline'
															)
													);
		echo App::Load("Helper/Javascript")
			->ajax_submit(
							Array(
									 /* It can be id or class name of the form */
									 "form_name"=>"#submit_form",
									 /* Enable debug to see server side response */
									 "debug"=>"true",
									 /* Hide Form on success */
									 "auto_hide"=>"false",
									 /* Element Name to display Message */
									 "message_element"=>".message"
								 )
						 );

	?>
	<form method="post" action="<?php echo $this->baseUrl('/fair2011'); ?>" onsubmit="return false" id="submit_form" class="app_validation">
		<div class="inner-right" style="width:470px">
			<h2>Personal Informaton</h2>
			<p>
				<ul class="inner">
					<li>
						<strong>Full Name *</strong> <br /><input type="text" name="data[clientrequest][name]" longdesc="Please enter your Full Name" class="input input check_notempty" /></li>
					<li><strong>Email *</strong> <br /><input type="text" name="data[clientrequest][email]" longdesc="Please enter a valid email address" class="input check_email" /></li>
				<li><br />
					<strong>Profession *</strong> <br />
					<input type="radio" name="data[clientrequest][profession]" id="student" value="student" /> <label for="student">Student</label>
					<input type="radio" name="data[clientrequest][profession]" id="service" value="service" /> <label for="service">Service</label>
					<input type="radio" name="data[clientrequest][profession]" id="business" value="business" /> <label for="service">Business</label>
					<input type="radio" name="data[clientrequest][profession]" id="ngo" value="ngo" /> <label for="service">NGO</label>
					<input type="radio" name="data[clientrequest][profession]" checked="checked" id="other" value="other" /> <label for="service">Others</label>
				</li>
				<li><br />
					<strong>Tell your friend</strong> <br />
					Friend Email 1 *<br />
					<input type="text" name="data[clientrequest][femail1]" longdesc="Please enter your friend email"  class="input check_email" /><br />
					</li><li>
					Friend Email 2<br />
					<input type="text" name="data[clientrequest][femail2]" class="input" /></li>

			</ul>
		</p>
	</div>
	<div class="inner-right" style="width:470px">
		<h2>	Website Information</h2>
		<p>
			<ul class="inner">
				<li>
					<strong>Features you want to add</strong><br />
					<?php foreach($cats['data'] as $val):?>
						<input type="checkbox" name="data[clientrequest][features][]" value="<?php echo $val['id'];?>" id="cat_<?php echo $val['id'];?>" /><label for="cat_<?php echo $val['id'];?>"> <?php echo $val['title'];?></label>
					<?php endforeach;?>
				</li>
				<li>
					<strong>Preffered title of the website *</strong> <br />
					<input type="text" name="data[clientrequest][websitetitle]" longdesc="Please enter a title of website" class="input check_notempty" /></li>


				<li>
					<strong>How did you find appRain?</strong> <br />
					<select name="data[clientrequest][howdidyoufineapprain]" longdesc="Please write the source you got appRain address" class="input check_notempty">
						<option value="Word of mouth">Word of mouth</option>
						<option value="Search Engine">Search Engine</option>
						<option value="Facebook">Facebook</option>
						<option value="Friends">Friends</option>
						<option value="appRain Website">appRain Website</option>
						<option value="Other">Other</option>
					</select>
					</li>

				<li><br />
					<?php echo App::Helper('Html')->capachaTag("ccapacha",Array("bk_color"=>"#000000","font_color"=>"#FFFFFF"));?>
					<input type="text" name="data[clientrequest][capacha]" id="capacha" longdesc="Type text showen in top image" class="input check_notempty" />
				</li>
				<li>
					<br />
					<input type="checkbox" name="data[clientrequest][comments]" value="I have my domain and hosting" /> I have my domain and hosting</li>
				<li><input type="checkbox" name="data[clientrequest][tnc]" id="tnc" /> <label for="tnc">I agree terms and condition</label></li>
				<li><div class="message">&nbsp;</div><input type="submit" name="data[clientrequest][submit]" class="button" value="Apply Now" /></li>
			</ul>
		</p>
	</div>
	</form>
<?php endif;?>